[LINUX] Kexec: Remove remainder of kexec-generic.patch
authorIan Campbell <ian.campbell@xensource.com>
Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Fri, 8 Dec 2006 11:47:09 +0000 (11:47 +0000)
Rename xen_machine_kexec() to just machine_kexec() and only compile in
the Xen or native version as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/machine_kexec.c
linux-2.6-xen-sparse/arch/x86_64/kernel/machine_kexec.c
linux-2.6-xen-sparse/drivers/xen/core/machine_kexec.c
linux-2.6-xen-sparse/include/linux/kexec.h
linux-2.6-xen-sparse/kernel/kexec.c
patches/linux-2.6.16.33/kexec-generic.patch [deleted file]
patches/linux-2.6.16.33/series

index f9ebc85481a5996f74999f4235d95caade0a3d25..d3979a653196fc167887f0f5c7a526355bf51007 100644 (file)
@@ -92,6 +92,7 @@ void machine_kexec_cleanup(struct kimage *image)
 {
 }
 
+#ifndef CONFIG_XEN
 /*
  * Do not allocate memory (or fail in any way) in machine_kexec().
  * We are past the point of no return, committed to rebooting now.
@@ -125,3 +126,4 @@ NORET_TYPE void machine_kexec(struct kimage *image)
        relocate_kernel((unsigned long)image->head, (unsigned long)page_list,
                        image->start, cpu_has_pae);
 }
+#endif
index f598578b0c8912e3895f2998b53b13d650c50755..f1d95838803fef441b31846d5097ac234ad3d0d4 100644 (file)
@@ -237,6 +237,7 @@ void machine_kexec_cleanup(struct kimage *image)
        return;
 }
 
+#ifndef CONFIG_XEN
 /*
  * Do not allocate memory (or fail in any way) in machine_kexec().
  * We are past the point of no return, committed to rebooting now.
@@ -275,3 +276,4 @@ NORET_TYPE void machine_kexec(struct kimage *image)
        relocate_kernel((unsigned long)image->head, (unsigned long)page_list,
                        image->start);
 }
+#endif
index 5e6b58b390c2eb9c0cf2e267042de8aae609e7f5..a16e9d9a229926bd9743912da98dfd1849d40bb9 100644 (file)
@@ -163,7 +163,7 @@ void xen_machine_kexec_unload(struct kimage *image)
  * stop all CPUs and kexec. That is it combines machine_shutdown()
  * and machine_kexec() in Linux kexec terms.
  */
-NORET_TYPE void xen_machine_kexec(struct kimage *image)
+NORET_TYPE void machine_kexec(struct kimage *image)
 {
        xen_kexec_exec_t xke;
 
index b51072d4ed4a3a4abc68eaa872b813a2a8d17892..8f4fccf63c2add4535a993dcc0f7d19014d754e5 100644 (file)
@@ -101,7 +101,6 @@ extern void machine_kexec_cleanup(struct kimage *image);
 #ifdef CONFIG_XEN
 extern int xen_machine_kexec_load(struct kimage *image);
 extern void xen_machine_kexec_unload(struct kimage *image);
-extern NORET_TYPE void xen_machine_kexec(struct kimage *image) ATTRIB_NORET;
 extern void xen_machine_kexec_setup_resources(void);
 extern void xen_machine_kexec_register_resources(struct resource *res);
 #endif
index 1dd40969672e0e2f3002fb2c4c88973d12aae7e8..9a1dbb6ae31208a075d0c53d5b0589baa36e9a6e 100644 (file)
@@ -1085,11 +1085,7 @@ void crash_kexec(struct pt_regs *regs)
                        struct pt_regs fixed_regs;
                        crash_setup_regs(&fixed_regs, regs);
                        machine_crash_shutdown(&fixed_regs);
-#ifdef CONFIG_XEN
-                       xen_machine_kexec(image);
-#else
                        machine_kexec(image);
-#endif
                }
                xchg(&kexec_lock, 0);
        }
diff --git a/patches/linux-2.6.16.33/kexec-generic.patch b/patches/linux-2.6.16.33/kexec-generic.patch
deleted file mode 100644 (file)
index a85d546..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- 0002/kernel/sys.c
-+++ work/kernel/sys.c
-@@ -435,8 +435,12 @@ void kernel_kexec(void)
-       kernel_restart_prepare(NULL);
-       printk(KERN_EMERG "Starting new kernel\n");
-       machine_shutdown();
-+#ifdef CONFIG_XEN
-+      xen_machine_kexec(image);
-+#else
-       machine_kexec(image);
- #endif
-+#endif
- }
- EXPORT_SYMBOL_GPL(kernel_kexec);
index 604aed27e9106a03238e0939cf2bdbd870b6feb5..28fabf00ff134dd7875d447d7add0f118623b181 100644 (file)
@@ -1,4 +1,3 @@
-kexec-generic.patch
 git-2efe55a9cec8418f0e0cde3dc3787a42fddc4411.patch
 git-2a8a3d5b65e86ec1dfef7d268c64a909eab94af7.patch
 git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch